package com.zds.zhouyi.model;

import com.zds.zhouyi.util.StringUtil;

import java.io.Serializable;

/**
 * @Author: ZDS
 * @Date:2023/10/24
 * @Desc:卦 实体
 */
public class Gua implements Serializable {
    /**
     * 卦数字
     */
    int id;
    /**
     * 卦名
     */
    String name;
    /**
     * 卦序号
     */
    int indexGua;
    /**
     * 描述
     */
    String description;

    /**
     * 解释
     */
    String explain;

    /**
     * 编码
     */
    String code;

    /**
     * 卦辞
     */
    String detail;
    /**
     * 推断
     */
    String inference;
    /**
     * 大象
     */
    String great_image;

    /**
     * 运势
     */
    String fortune;

    /**
     * 爱情
     */
    String love;

    /**
     * 疾病
     */
    String disease;
    /**
     * 失物
     */
    String lost;

    /**
     * 诉讼
     */
    String litigation;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndexGua() {
        return indexGua;
    }

    public void setIndexGua(int indexGua) {
        this.indexGua = indexGua;
    }

    public String getDescrip() {
        return description;
    }

    public void setDescrip(String description) {
        this.description = description;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Gua() {
    }

    public Gua(int id, String name, int indexGua, String description) {
        this.id = id;
        this.name = name;
        this.indexGua = indexGua;
        this.description = description;
    }

    public Gua(int id, String name, int indexGua, String description, String detail) {
        this.id = id;
        this.name = name;
        this.indexGua = indexGua;
        this.description = description;
        this.detail = detail;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInference() {
        return inference;
    }

    public void setInference(String inference) {
        this.inference = inference;
    }

    public String getGreat_image() {
        return great_image;
    }

    public void setGreat_image(String great_image) {
        this.great_image = great_image;
    }

    public String getFortune() {
        return fortune;
    }

    public void setFortune(String fortune) {
        this.fortune = fortune;
    }

    public String getLove() {
        return love;
    }

    public void setLove(String love) {
        this.love = love;
    }

    public String getDisease() {
        return disease;
    }

    public void setDisease(String disease) {
        this.disease = disease;
    }

    public String getLost() {
        return lost;
    }

    public void setLost(String lost) {
        this.lost = lost;
    }

    public String getLitigation() {
        return litigation;
    }

    public void setLitigation(String litigation) {
        this.litigation = litigation;
    }

    public Gua(int id, String name, int indexGua, String description, String code, String detail,
               String inference, String great_image, String fortune, String love, String disease,
               String lost, String litigation) {
        this.id = id;
        this.name = name;
        this.indexGua = indexGua;
        this.description = description;
        this.code = code;
        this.detail = detail;
        this.inference = inference;
        this.great_image = great_image;
        this.fortune = fortune;
        this.love = love;
        this.disease = disease;
        this.lost = lost;
        this.litigation = litigation;
    }

    @Override
    public String toString() {
        return "第" + StringUtil.numberToChinese(id) + "卦 \n\n" +
                "卦名 : " + name + "\n\n" +
                "描述 : " + description + "\n\n" +
                "解释 : " + explain + "\n\n" +
                "编码 : " + code + "\n\n" +
                "卦辞 : " + detail + "\n\n" +
                "推断 : " + inference + "\n\n" +
                "大象 : " + great_image + "\n\n" +
                "运势 : " + fortune + "\n\n" +
                "爱情 : " + love + "\n\n" +
                "疾病 : " + disease + "\n\n" +
                "失物 : " + lost + "\n\n" +
                "诉讼 : " + litigation + "\n\n";
    }

    public String toStringNoName() {
        return "第" + StringUtil.numberToChinese(id) + "卦 \n\n" +
                "描述 : " + description + "\n\n" +
                "解释 : " + explain + "\n\n" +
                "编码 : " + code + "\n\n" +
                "卦辞 : " + detail + "\n\n" +
                "推断 : " + inference + "\n\n" +
                "大象 : " + great_image + "\n\n" +
                "运势 : " + fortune + "\n\n" +
                "爱情 : " + love + "\n\n" +
                "疾病 : " + disease + "\n\n" +
                "失物 : " + lost + "\n\n" +
                "诉讼 : " + litigation + "\n\n";
    }

}
